package com.itic.mall.system.goods.propertyvalue.service;

import com.itic.appbase.framework.common.service.CrudService;
import com.itic.mall.system.inter.goods.propertyvalue.persistence.dao.PropertyValueDao;
import com.itic.mall.system.inter.goods.propertyvalue.persistence.model.PropertyValue;
import com.itic.mall.system.inter.goods.propertyvalue.persistence.model.PropertyValueExample;
import com.itic.mall.system.inter.goods.propertyvalue.persistence.model.PropertyValueVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class PropertyValueService
     extends CrudService<PropertyValueDao,PropertyValue,PropertyValueExample> {
    @Autowired
    private PropertyValueDao propertyValueDao;

	public List<PropertyValueVo> getPropertyValueVosByNameId(String nameId) {
		return propertyValueDao.getPropertyValueVosByNameId(nameId);
	}
	
	public List<PropertyValueVo> getPropertyValueVosByNameIdNew(String nameId,String spuid) {
		return propertyValueDao.getPropertyValueVosByNameIdNew(nameId,spuid);
	}


}